﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp18
{
    class SumUtils
    {
        public int a(int a ,int b) 
        {
            int sum = a + b;
            Console.WriteLine("和" + sum);
            return sum;
        }
        public double b(double a ,double b)
        {
            double sum = a + b;
            Console.WriteLine("和" + sum);
            return sum;
        }
        public string c(string a , string b) 
        {
            string sum = a + b;
            Console.WriteLine("和" + sum);
            return sum;
        }
        public int d(int a) 
        {
            int sum = 0;
            for (int i = 1; i <= a; i++)
            {
                sum = sum + i;
            }
            Console.WriteLine("和" + sum);
            return sum;
        }
    }
}
